package cn.gdcp.bisai;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class SQLiteOpenHelperDB extends android.database.sqlite.SQLiteOpenHelper {
    public SQLiteOpenHelperDB(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {

                String sql1="create table student(" +
                        "stuno varchar(20),name varchar(20),age int,sex char(2)" +
                        ")";
                sqLiteDatabase.execSQL(sql1);
                String sql2="create table score(" +
                        "stuno varchar(20),android int,english int" +
                        ")";
                sqLiteDatabase.execSQL(sql2);
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
